#include <jni.h>
#include <string>
#include <stdio.h>
#include <iostream>

using namespace std;

extern "C" JNIEXPORT jstring JNICALL
Java_com_beiming_ndkdemo_NdkUtil_stringFromJNI(
        JNIEnv* env,
        jobject /* this */) {
    std::string hello = "stringFromJNI:Hello from C++";
    return env->NewStringUTF(hello.c_str());
}

extern "C"
JNIEXPORT jstring JNICALL
Java_com_beiming_ndkdemo_NdkUtil_helloWorld(JNIEnv *env, jobject ) {
    std::string hello = "helloWorld:Hello from C++";
    return env->NewStringUTF(hello.c_str());
}

void hello(){
    cout << "Hello, world!" << endl;
}
